<?php
// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | create by allen.qiang
// +----------------------------------------------------------------------


/**
 * 角色组操作功能
 * @package  htdocs
 * @subpackage  quanliadmin
 * create by allen.qiang
 */

quanli_require('module/base/system/sysRole.class.php');

class pa_roleGroupList {

	public function execute() {

        if (isset($_REQUEST['operFlg']) && is_numeric($_REQUEST['operFlg']) && $_REQUEST['operFlg'] > 0) {

            switch ($_REQUEST['operFlg']) {

                case 1: //角色组列表
                    $this->showAllRoleGroup();
                    break;

                default:
                    backendError();
                    break;

            }

        } else {

            $this->toError('参数错误');

        }

	}

    /**
     * 角色组列表
     */
    private function showAllRoleGroup() {

		global $G_PGLOB;

        $G_PGLOB->smarty->assign('edit_permission', $G_PGLOB->has_permission(3));

		$G_PGLOB->smarty->display('system/roleGroupList.tpl');

	}

}